package com.jk;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * Created by scc on 2017/12/18.
 */
@SpringBootApplication
//用mybatis的xml方式时此注解扫描dao接口所在包
@MapperScan("com.jk.dao")
//根据配置，spring自动选择适应的配置
//当前包以及他所有的子包扫描开启注解
@EnableAutoConfiguration
//开启事务用的注解
@EnableTransactionManagement
public class WallertMain {


    public static void main(String[] args) {
        SpringApplication.run(WallertMain.class,args);
    }



}
